package itsm.isperp.module.controller.app;

import javax.servlet.http.HttpServletRequest;

import itsm.isperp.framework.core.context.ContextHolder;
import itsm.isperp.framework.web.controller.BaseController;
import itsm.isperp.module.entity.app.AppLdapConfig;
import itsm.isperp.module.service.app.AppLdapConfigService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 控制器
 * 
 * @author lizx
 * @date 2014-09-11 22:29
 */
@Controller
@RequestMapping("app/ldapConfig")
public class AppLdapConfigController extends BaseController<AppLdapConfig> {

	@Autowired
	protected AppLdapConfigService appLdapConfigService;

	@Override
	public AppLdapConfigService getService() {
		return this.appLdapConfigService;
	}

	@Override
	public String getPageTitle() {
		return "ad域配置";
	}

	@Override
	@RequestMapping(value = { "manage", "" })
	public ModelAndView manage(HttpServletRequest req) {
		ModelAndView mv = this.getModelAndView();
		String s = ContextHolder.getConfigByKey("adPasswordCheck");
		mv.addObject("adPasswordCheck", s);
		return mv;
	}
}
